package org.example;

import cn.hutool.core.io.FileUtil;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Objects;

public class Main {

    public static void main(String[] args) {
        System.out.println(String.format(
                "天星小米资方订单validOrder: %s ,流水号: %s , 还款通知状态:%s 与还款接口状态:%s 不一致.",
                "aa", "bb", "cc", 1));
        final Integer[] endState = new Integer[]{12, 32, 54};
        System.out.println(Arrays.stream(endState).anyMatch(e -> Objects.equals(e, 12)));
        System.out.println(Arrays.stream(endState).anyMatch(e -> Objects.equals(e, 32)));
        System.out.println(Arrays.stream(endState).anyMatch(e -> Objects.equals(e, 54)));
        System.out.println(Arrays.stream(endState).anyMatch(e -> Objects.equals(e, 0)));
        System.out.println(new BigDecimal(10).add(new BigDecimal(10)).divide(new BigDecimal(2), 2));
        System.out.println(
                (new BigDecimal(10).add(new BigDecimal(10))).divide(new BigDecimal(2), 2));
        String path = FileUtil.normalize(
                "D:\\workbench\\source-code\\git\\git-juzi\\develop\\user-growth\\api-accounts\\/data/apiAccount/contractPush/tmp/215/2023-10-12/3641179987194675218_15.pdf.tmp");
        System.out.println(path);
        for (long i = 0; i < 1024; i++) {
            System.out.println(
                    System.currentTimeMillis() - 1483200000000L << 14 | 0 << 12 | i << 8 | 10);
        }
        System.out.println(FileUtil.normalize("/tmp/%s/%s/%s/%s"));
        System.out.println(FileUtil.normalize(System.getProperty("java.io.tmpdir").concat("%s/%s/%s/%s")));
        System.out.println(FileUtil.normalize(System.getProperty("user.dir").concat("/target").concat("/%s/%s/%s/%s")));
    }
}